Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement proposal for file URL path normalisation #170

Merged
merged 4 commits into from
Sep 30, 2020

Conversation

alwinb
Copy link
Contributor

@alwinb alwinb commented Sep 23, 2020

Implement the proposal for file URL path normalisation, as discussed in whatwg/url#405

(!!) Please note that this pins the tests to a specific commit in my fork of the web platform tests.
This should be updated if these changes are accepted, see web-platform-tests/wpt#25716

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but marking as "request changes" just so that I don't forget to update the get-latest-platform-tests.js before merging. (I'll be happy to do that myself, once the spec/tests land; no further action needed from you.) Thanks so much for your work!

annevk pushed a commit to whatwg/url that referenced this pull request Sep 30, 2020
Applicable only to file URLs:
- Leading empty path segments are no longer removed. 
- If absent, the host is copied from the base URL.
- Otherwise the host is preserved with one exception: if the host is `localhost`, then it is set to the empty string. 

Tests: web-platform-tests/wpt#25716.

JS implementation: jsdom/whatwg-url#170.

Fixes #302 and fixes #402.
@domenic domenic merged commit 3fef5f6 into jsdom:master Sep 30, 2020
@alwinb alwinb deleted the whatwg-url-issue-405 branch October 8, 2020 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants